package com.geostart.constructionland.system.service;

import com.geostar.constructionland.common.entity.response.AdjustAgrVersion;
import com.geostar.constructionland.common.entity.response.ExtJsAjaxResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

@FeignClient(name = "constructionland-analyse")
public interface AdjustVersionFeignClient {

    @RequestMapping(value = "/adjustVersion/add", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse add(@RequestBody @Valid AdjustAgrVersion adjustAgrVersion);

    @RequestMapping(value = "/adjustVersion/update", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse update(@RequestBody @Valid AdjustAgrVersion adjustAgrVersion);

    @RequestMapping(value = "/adjustVersion/delete", method = RequestMethod.POST)
    ExtJsAjaxResponse delete(@RequestParam(value = "id") String id);

    @RequestMapping(value = "/adjustVersion/list", method = RequestMethod.POST)
    ExtJsAjaxResponse list(@RequestParam(value = "page") int pageNo, @RequestParam(value = "limit") int pageNum, @RequestParam(value = "query_param_adjust_version_name", required = false) String query_param_adjust_version_name);
}
